% MATRIX MULTIPLICATION
% =============================================================
% This algorithm generates matrix multiplied by a vector
% NOTA BENE: the shape of the vector is transposed. That makes
% the algorithm much simpler to implement
function C = mat_multiply( M, v )
	for i=1:rows(M)
		C(i)=0;
		for j=1:columns(M)
			C(i)=C(i)+M(i,j)*v(j);
		endfor
	endfor
endfunction
